﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class ChecksIfItsThirdDigitIsSeven
{
    static void Main(string[] args)
    {
        Console.WriteLine("Enter digit");
        int digit = (Convert.ToInt32(Console.ReadLine()));
        int divider = (digit / 100);
        bool check = ((divider % 10) == 7);
        Console.WriteLine("the third digit of number {0} is 7 - {1}", digit, check);
    }
}
